﻿using Core.Domain.Customers;
using System.Data.Entity.ModelConfiguration;
namespace Data.Mapping.Customers
{
    public class ResumeMap : EntityTypeConfiguration<Resume>
    {
        public ResumeMap()
        {
            this.ToTable("Resume");
            this.HasKey(c => c.Id);
            this.Property(u => u.ResumeName).HasMaxLength(100);
            this.Property(u => u.Name).HasMaxLength(20);
            this.Property(u => u.Phone).HasMaxLength(20);
            this.Property(u => u.Email).HasMaxLength(200);
            this.Property(u => u.Evaluation).IsMaxLength();

            this.Ignore(rr => rr.Sex);
            this.Ignore(rr => rr.WorkState);
            this.Ignore(rr => rr.WorkType);
        }
    }
}
